package com.itheima.datatype_demo;

public class Student {
    private Player player;      // 成员变量的类型属于接口类型
    private Mp3Player mp3Player;// 成员变量的类型属于抽象类类型
    private IPod iPod;          // 成员变量的类型属于具体类类型

    public Student() {
    }

    public Student(Player player, Mp3Player mp3Player, IPod iPod) {
        this.player = player;
        this.mp3Player = mp3Player;
        this.iPod = iPod;
    }

    public Player getPlayer() {
        return player;
    }

    public void setPlayer(Player player) {
        this.player = player;
    }

    public Mp3Player getMp3Player() {
        return mp3Player;
    }

    public void setMp3Player(Mp3Player mp3Player) {
        this.mp3Player = mp3Player;
    }

    public IPod getiPod() {
        return iPod;
    }

    public void setiPod(IPod iPod) {
        this.iPod = iPod;
    }
}
